//
//  WXVideoTitleCollectionReusableView.m
//  NewGuiYang
//
//  Created by 罗江 on 2018/5/25.
//  Copyright © 2018年 luojiang. All rights reserved.
//

#import "WXVideoTitleCollectionReusableView.h"

#import <WXXHNInternetSupervise/WXInternetSuperviseViewConfigManager.h>

#import <WXCloudModuleCategories/UIView+LayoutMethods.h>

@implementation WXVideoTitleCollectionReusableView
#pragma mark - life cycle
-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initialize];
    }
    return self;
}

-(void)initialize
{
    self.backgroundColor = [UIColor whiteColor];
    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(13, 0, 4, 20)];
    lineView.backgroundColor = [WXInternetSuperviseViewConfigManager sharedInstance].GovermentTitleColor;
    lineView.layer.cornerRadius = 2;
//    [self addSubview:lineView];
    
    _titleImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 18, 20, 14)];
    _titleImageView.contentMode = UIViewContentModeScaleToFill;
    _titleImageView.image=[UIImage imageNamed:@"视频icon"];
    _titleImageView.layer.masksToBounds = YES;
    [self addSubview:_titleImageView];
    
    _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(40, 10, 100, 20)];
    _titleLabel.text = @"生活服务";
    _titleLabel.font = [UIFont systemFontOfSize:16];
    [self addSubview:_titleLabel];
    
    lineView.y = (self.height-lineView.height)/2;
    _titleLabel.y = (self.height-_titleLabel.height)/2;
    
}

@end
